package com.example.seh.square.detail;

import java.util.Date;
import java.util.List;

public class CommentsDTO {
    //评论id
    private Integer commentId;
    //评论内容
    private String content;
    //帖子id
    private Integer postId;
    //评论时间
    private Date createdAt;
    //父回复的id
    private Integer parentId;
    //子回复
    private List<CommentsDTO> children;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<CommentsDTO> getChildren() {
        return children;
    }

    public void setChildren(List<CommentsDTO> children) {
        this.children = children;
    }
}
